//
//  SendOrderCell.swift
//  ShareUmbrella
//
//  Created by duanmingyang on 2017/9/14.
//  Copyright © 2017年 尧尚信息科技. All rights reserved.
//

import UIKit

class SendOrderCell: UITableViewCell {

    let kScreenHeight = UIScreen.main.bounds.size.height
    let kScreenWidth = UIScreen.main.bounds.size.width

    var titleLabel:UILabel?
    var valueTextField:UITextField?
    
    required init?(coder aDecoder:NSCoder) {
        super.init(coder: aDecoder)
    }
    
    override init(style:UITableViewCellStyle, reuseIdentifier:String?) {
        
        super.init(style: style, reuseIdentifier: reuseIdentifier)
        self.backgroundColor = RGB(r: 234, 235, 236)
        self.setUpUI();
    }
    
    func setUpUI() {
        
        //文字信息
        titleLabel = UILabel.init()
        titleLabel?.backgroundColor = UIColor.clear;
        titleLabel?.frame = CGRect(x:15, y:0, width:200, height:44)
        titleLabel?.text = ""
        titleLabel?.textColor = RGB(r: 60, 60, 60)
        titleLabel?.font = UIFont.systemFont(ofSize: 16)
        addSubview(self.titleLabel!)
        
        valueTextField = UITextField.init()
        valueTextField?.frame = CGRect(x:kScreenWidth-280, y:0, width:260, height:44)
        valueTextField?.textAlignment = NSTextAlignment.right
        addSubview(self.valueTextField!)
    }
    
    //RGB
    func RGB(r:CGFloat,_ g:CGFloat,_ b:CGFloat) -> UIColor{
        return UIColor(red: (r)/255.0, green: (g)/255.0, blue: (b)/255.0, alpha: 1.0)
    }


}
